gdk_pixbuf_get_from_window: honor device scale
authorLars Uebernickel <lars.uebernickel@canonical.com>
Wed, 9 Dec 2015 16:48:26 +0000 (17:48 +0100)
committerLars Uebernickel <lars.uebernickel@canonical.com>
Wed, 16 Dec 2015 12:07:58 +0000 (13:07 +0100)
commit1f076257059f15f37c2c93853c3eff2ec2be2aa1
treeaf9485f49075fda3fb0febb44f583b3c7c06684b
parenta56a8a8c0262420bc6acce38686c08257cde537c
gdk_pixbuf_get_from_window: honor device scale

gdk_pixbuf_get_from_window() paints the given window onto a new cairo
surface. Create that new surface with the same device scale as the
window so that the result is not scaled down on hidpi screens.

This is similar to 657a43e (which was reverted), but doesn't modify the
behavior of gdk_pixbuf_get_from_surface().

https://bugzilla.gnome.org/show_bug.cgi?id=757147
gdk/gdkpixbuf-drawable.c